using System;
using System.Resources;
using System.Web.UI;
using System.Web.UI.WebControls;
using newtelligence.DasBlog.Runtime;
using newtelligence.DasBlog.Web.Core;
using newtelligence.DasBlog.Web.Core.Macros;

namespace newtelligence.DasBlog.Web
{
    public partial class Email : SharedBasePage, IPageFormatInfo
    {
        protected ResourceManager resmgr;

        protected override PlaceHolder ContentPlaceHolder
        {
            get { return contentPlaceHolder; }
        }

        #region IPageFormatInfo Members

        public Control Bodytext
        {
            get
            {
                Control c = LoadControl("EmailBox.ascx");
                return c;
            }
        }

        #endregion

        protected override void OnInit(EventArgs e)
        {
            InitializeComponent();
            base.OnInit(e);

            resmgr = ApplicationResourceTable.Get();
        }

        private void InitializeComponent()
        {
        }

        protected override EntryCollection LoadEntries()
        {
            Entry e = new Entry();
            e.Title = resmgr.GetString("text_send_an_email");
            TitleOverride = e.Title;

            return new EntryCollection(new Entry[] {e});
        }
    }
}